package com.leihao.marketing.mapper;

import com.leihao.marketing.domain.Subject;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SubjectMapper {
    List<Subject> findAll();
    List<Subject> findList();
    Subject findById(@Param("subjectId") Integer subjectId);
    void add(Subject subject);
    void delete(@Param("subjectId") Integer subjectId);
    void update(Subject subject);

}
